- value
- The string to parse.
| Visual Basic (Declaration) | |
|---|---|
<ExtensionAttribute()> Overloads Public Shared Function Parse(Of T)( _ ByVal value As String _ ) As T | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim value As String Dim value As T value = GeneralExtensions.Parse(Of T)(value) | |
| C# | |
|---|---|
[ExtensionAttribute()] public static T Parse<T>( string value ) | |
| C++/CLI | |
|---|---|
[ExtensionAttribute()] public: static T^ Parsegeneric<typename T> ( String^ value ) | |
Parameters
- value
- The string to parse.
Type Parameters
- T
- The enumeration type
Return Value
The enumeration value that corresponds to the string.Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
Copy Code